
import type { CardListData, CardListParams, CardParams } from '@/types/car'
import { request } from '@/utils/reuqest'

/**
 * 获取月卡列表
 * @param { page, pageSize} params  查询参数
 * @returns Promise
 */
export const getCardListAPI = (params: CardListParams) => {
  return request<CardListData>('/parking/card/list', 'GET', params)
}
/**
 * 添加月卡
 * @param params 月卡管理参数
 * @returns Promise
 */
export const createCardAPI = (params: CardParams) => {
    return request("/parking/card", "POST", params);
  };